package com.cje.factory;/**
 * @Auther: ChenJinEn
 * @Date: 2020/8/10 10:59
 * @Description: //TODO
 */

import com.cje.factory.methodfactory.AudiCarCreatFac;
import com.cje.factory.simplefactory.Car;
import com.cje.factory.simplefactory.CarCreatFactory;

/**
 *@ClassName Test
 *@Description TODO
 *@Author checkZH
 *@Date 2020/8/10 10:59
 *@Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        //简单工厂
        Car aodicar = CarCreatFactory.getCar("奥迪");
        Car baomacar = CarCreatFactory.getCar("宝马");

        //方法工厂
        com.cje.factory.methodfactory.Car aodicar1 = new AudiCarCreatFac().creatCar();
        com.cje.factory.methodfactory.Car aodicar2 = new AudiCarCreatFac().creatCar();

        //抽象工厂

    }
}
